
  <h1>New Timeline event </h1>

<% form_for([@memorylane, @timeline_event]) do |f| %>
  <% if f.error_messages.length > 0 -%>
      <div class="errors"><%= f.error_messages %></div>

 <% end -%>




                <div class="dialog">
                    <table>
                        <tbody>
                            <tr class="prop">
                                <td valign="top" >
                                    <label for="title">Title:</label>
                                </td>
                                <td valign="top" >
                                    <%= f.text_field :title %>

                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description">Description:</label>
                                </td>
                                <td valign="top" >
                                      <%= f.text_area :description %>
                                </td>
                            </tr>
                             <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="title">Start Date:</label>
                                </td>
                                <td valign="top" >
                                   <%= f.calendar_date_select :event_start, :popup => true %>
                                </td>
                            </tr>
                             <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="title">End Date:</label>
                                </td>
                                <td valign="top" >
                                   <%= f.calendar_date_select :event_end, :popup => true %>
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="title">Latest Start Date:</label>
                                </td>
                                <td valign="top" >
                                   <%= f.calendar_date_select :latest_start, :popup => true %>
                                </td>
                            </tr>
                             <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="title">Earliest End Date:</label>
                                </td>
                                <td valign="top" >
                                   <%= f.calendar_date_select :earliest_end, :popup => true %>
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="type">Is Duration?</label>
                                </td>
                                <td valign="top" >
                                     <%= f.check_box :is_duration%>
                                </td>
                            </tr>
                                <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="type">Image:</label>
                                </td>
                                <td valign="top" >
                                     <%= f.text_field :image %>
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="type">Link:</label>
                                </td>
                                <td valign="top"  >
                                    <%= f.text_field :link %>
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="title">Colour:</label>
                                </td>
                                <td valign="top"  >
                                 
                                  <%= f.text_field :color, :value =>'#CCCCCC' %>
                            

                                </td>
                            </tr>
                           <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="title">Text Colour:</label>
                                </td>
                                <td valign="top" >
                                    <%= f.text_field :text_color, :value =>'#333333', :class => 'procolor' %>
                                </td>
                            </tr>
                           
                        </tbody>
                    </table>
                </div>
                <%= f.hidden_field :memorylane_id, :value =>@memorylane.id %>
                <div class="buttons">
                    <span class="button">
                        <input class="save" type="submit" value="Create"/>
                    </span>
                </div>





<% end %>

      <br>

